package com.huatai.verity.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 大屏用户
 * @author chenwj
 */
@Data
@TableName("screen_user")
@ApiModel("大屏用户")
public class ScreenUser {

	@TableId(value = "sc_id", type = IdType.AUTO)
	@ApiModelProperty("大屏ID")
	private Integer scId;

	@TableField("sc_name")
	@ApiModelProperty(value = "大屏名称,全英文", required = true)
	private String scName;

	@TableField("sc_permission_id")
	@ApiModelProperty(value = "大屏权限ID", required = true)
	private String scPermissionId;

	@TableField("company")
	@ApiModelProperty("单位/公司名称")
	private String company;

	@TableField("login_time")
	@ApiModelProperty("最近登录时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime loginTime;

	@TableField("permission_endDate")
	@ApiModelProperty("权限结束日期")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime permissionEndDate;

	@TableField("client_time")
	@ApiModelProperty("客户端时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime clientTime;

	@TableField("permanent")
	@ApiModelProperty(value = "是否永久用户")
	private String permanent;

	@TableField("forbidden")
	@ApiModelProperty(value = "是否禁用,0-正常,1-警告,2-禁用")
	private Integer forbidden;

	@TableField(value = "create_time", fill = FieldFill.INSERT)
	@ApiModelProperty("创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime createTime;

	@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
	@ApiModelProperty("更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime updateTime;

	@TableField("spare1")
	@ApiModelProperty("备用字段")
	private String spare1;

	@TableField("spare2")
	@ApiModelProperty("备用字段")
	private String spare2;

}
